#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <SDL/sdl.h>
#include "sprite.h"
#include "map.h"
#include "flame.h"
#include "unit.h"


Functions | |
| void | bomb_update_timer (bomb *p_bomb) |
| Update the bomb timer. Deincrement time_left. | |
| void | bomb_explode (bomb *p_bomb, map *p_map, flame **v_flame, int *flame_nb) |
| Explode the bomb. This function must handle the type of explosion following the type of bomb and update the map status (tile flags). | |
| void | bomb_draw (bomb *p_bomb, SDL_Surface *destination) |
| Draw the bomb on the destination surface. | |
| void | bomb_throw (bomb *p_bomb, map *p_map, int direction, int distance) |
| void bomb_throw | ( | bomb * | p_bomb, | |
| map * | p_map, | |||
| int | direction, | |||
| int | distance | |||
| ) |
| distance | : distance in tiles |
1.5.4